orNull

infix fun orNull(value: Int): PositiveInt?

Returns the value as a positive int, or returns null if the value is strictly negative.